package cn.itcast.bos.dao.base;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Courier;

/**
 * 取派员的业务访问层
 * 
 * @author 王文杰
 * @version 1.0, 2017-9-3 20:24:07
 */
public interface CourierRepository extends JpaRepository<Courier, Integer>, JpaSpecificationExecutor<Courier> {

	@Query(value="update Courier set deltag='1' where id = ?")
	@Modifying
	public void updateDelTag(Integer id);

	@Query(value="update Courier set deltag='' where id = ?")
	@Modifying
	public void resDelTag(Integer id);

}
